#include <fcntl.h>      /* open */
#include <unistd.h>     /* exit */
#include <sys/ioctl.h>  /* ioctl */
#include <stdio.h>
#include <string.h>

#include "vvsfs.h"

int main(int argc, char *argv[])
{
    int file_desc;
    if(argc!=2)
    {
        printf("Usage: %s [device_file]\n", argv[0]);
        return 0;
    }
    struct vvsfs_ioctl test_ioctl;
    test_ioctl.file_size=12;
    file_desc=open(argv[1], 0);
    ioctl(file_desc, VVSFS_IOCTL_RESIZE, (long)(&test_ioctl));
    return 0;
}
